package com.freely.domain;

import javax.validation.constraints.NotNull;

public class Location {
	@NotNull(message="缺少必要字段，更新失败")
	private Long user_id;				//用户id
	@NotNull(message="获取经度失败")
	private Double location_longitude;	//用户经度
	@NotNull(message="获取纬度失败")
	private Double location_latitude;	//用户纬度
	
	public Long getUser_id() {
		return user_id;
	}
	public void setUser_id(Long user_id) {
		this.user_id = user_id;
	}
	public Double getLocation_longitude() {
		return location_longitude;
	}
	public void setLocation_longitude(Double location_longitude) {
		this.location_longitude = location_longitude;
	}
	public Double getLocation_latitude() {
		return location_latitude;
	}
	public void setLocation_latitude(Double location_latitude) {
		this.location_latitude = location_latitude;
	}
	@Override
	public String toString() {
		return "Location [user_id=" + user_id + ", location_longitude=" + location_longitude + ", location_latitude="
				+ location_latitude + "]";
	}
}
